package com.nhim.cms.admin.shared;

import javax.persistence.Column;

public class ContentTypeElementDefinitionRPCProxy implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String description;
	private Integer position;
	private Boolean isRequired = false;
	private String elementDefinitionName;
	private Boolean isMetadata;
	private Integer elementDefinitionId;
	private Integer contentTypeId;

	// Constructors

	/** default constructor */
	public ContentTypeElementDefinitionRPCProxy() {
	}

	

	/** full constructor */
	public ContentTypeElementDefinitionRPCProxy(Integer id,String description, Integer position,Boolean isRequired,String elementDefinitionName, Boolean isMetadata,Integer elementDefinitionId, Integer contentTypeId) {
		this.id = id;
		this.description = description;
		this.position = position;
		this.isRequired = isRequired;
		this.isMetadata = isMetadata;
		this.elementDefinitionName = elementDefinitionName;
		this.elementDefinitionId = elementDefinitionId;
		this.contentTypeId = contentTypeId;
	}

	
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	
	public String getElementDefinitionName() {
		return this.elementDefinitionName;
	}

	public void setElementDefinitionName(String elementDefinitionName) {
		this.elementDefinitionName = elementDefinitionName;
	}
	
	@Column(name = "description", length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	@Column(name="is_required")
	public void setIsRequired(Boolean isRequired)
	{
		this.isRequired = isRequired;
		
	}
	public Boolean getIsRequired()
	{
		return isRequired;
		
	}

	@Column(name = "position")
	public Integer getPosition() {
		return this.position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}
	

	public Boolean getIsMetadata() {
		return this.isMetadata;
	}

	public void setIsMetadata(Boolean isMetadata) {
		this.isMetadata = isMetadata;
	}



	public void setElementDefinitionId(Integer elementDefinitionId) {
		this.elementDefinitionId = elementDefinitionId;
	}



	public Integer getElementDefinitionId() {
		return elementDefinitionId;
	}



	public void setContentTypeId(Integer contentTypeId) {
		this.contentTypeId = contentTypeId;
	}



	public Integer getContentTypeId() {
		return contentTypeId;
	}

	
}